﻿using UnityEngine;

public class UIButtons : MonoBehaviour {
	// === Public =====================================================================================================
	public void StartGame() {
		Managers.Game.Start();
	}

	public void StopGame() {
		Managers.Game.Stop();
		ShowUiMenuPanel();
	}

	public void RestartGame() {
		Managers.Game.Restart();
	}

	public void ResetGame() {
		Managers.Game.Reset();
	}
	
	public void CloseApplication() {
		Application.Quit();
	}

	public void ShowUiMenuPanel() {
		Managers.GuiPanel.HideAllPanelAndShowPanel(GUIPanelType.Menu);
	}

	public void ShowUiOptionPanel() {
		Managers.GuiPanel.HideAllPanelAndShowPanel(GUIPanelType.Option);
	}
}